package com.saic.data.dotask;

import java.io.IOException;

import org.apache.hadoop.hbase.client.ResultScanner;

import com.saic.data.util.HbaseUtil;

/**
 * @DESC:通过列名-列值查询
 * @author Xinshiyou
 */
public class QueryByValue extends DoTask {

	private String tabName;
	private String FamilyName;
	private String ColName;
	private String Value;

	public QueryByValue(String tabName, String FamilyName,String ColName, String Value) {
		this.tabName = tabName;
		this.FamilyName = FamilyName;
		this.ColName = ColName;
		this.Value = Value;
	}

	public void doTask() {
		try {
			result = HbaseUtil.QueryByConditionValue(tabName, FamilyName,ColName, Value);
		} catch (IOException e) {
		}
	}

	public ResultScanner getResult() {
		return (ResultScanner) result;
	}
}
